#pragma once
#include <cstdint>
#include <string>
#include "Singleton.h"
#include "agency.h"




class AgencyMgr
{
public:
    AgencyMgr();
    virtual ~AgencyMgr();

public:
    static AgencyMgr* Instance()
	{
		return CSingleton<AgencyMgr>::Instance();
	}

public:
	stAgency* Get(const std::string& agency_account);
	stAgency* Get(const std::uint32_t agency_id);
	stAgency* RefreshGet(const std::uint32_t agency_id);

public:
    std::map<std::uint32_t, stAgency> m_agency_infos;
	std::map<std::string, std::uint32_t> m_name2id_group;
};












